# Maintainer: Jerome Leclanche <jerome@leclan.ch>

pkgname=xonsh
pkgver=0.14.1
pkgrel=1
pkgdesc="Python-powered, cross-platform, Unix-gazing shell"
url="https://xon.sh/"
arch=("any")
license=("BSD")
depends=("python" "python-ply" "python-setproctitle")
optdepends=("python-prompt_toolkit: support for SHELL_TYPE=prompt_toolkit")
makedepends=("python-setuptools" "python-wheel")
source=("https://github.com/xonsh/xonsh/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
install=xonsh.install
sha256sums=('050640cc805a98a79288c8e57c367ed7eb4dde39b3e318c636a8f63e86267b29')

package() {
  cd $pkgname-$pkgver
  python setup.py install --root="$pkgdir"
  install -Dm644 license "$pkgdir/usr/share/licenses/$pkgname/license"
}
